﻿using Castle.ActiveRecord;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Online_Course.Domain
{
    [ActiveRecord]
    public class CourseInfo:BaseEntity<CourseInfo>
    {
        [Property(Length = 30, NotNull = false)]
        [Display(Name = "课程名")]
        public string Name { get; set; }

        [Property(Length = 30, NotNull = false)]
        [Display(Name = "课程编号")]

        public string CourseCode { get; set; }

        [Property(Length = 30, NotNull = false)]
        [Display(Name = "备注")]
        public string Remark { get; set; }

        [Property(Length = 30, NotNull = false)]
        [Display(Name = "人数")]
        public int Maxpeople { get; set; }
    }
}
